package com.sky.his.api.mis.controller.form;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Min;
import java.util.Date;

@Data
public class AddCheckupDayBillForm {
    @NotNull(message = "ID cannot be null")
    @Min(value = 1, message = "ID must be greater than or equal to 1")
    private Integer id;

    @NotBlank(message = "Waybill code cannot be blank")
    @Pattern(regexp = "^[A-Za-z0-9]+$", message = "Waybill code must only contain alphanumeric characters")
    private String waybillCode;

    @NotBlank(message = "Waybill date cannot be blank")
    @Pattern(regexp = "^\\d{4}-\\d{2}-\\d{2}$", message = "Waybill date must be in the format yyyy-MM-dd")
    private String waybillDate;
}
